
import { View, Image } from '@tarojs/components'
import { AtButton } from 'taro-ui'
import Taro from '@tarojs/taro'
import headerBg from "../../assets/images/headbg.jpg"
import GlobalFooter from '../../components/GlobalFooter'
import './index.scss'

export default function () {
  return (
    <View className='index-page'>
      <View className='title-box'>
        <View className='at-article__h1 title'>
          MBTI 性格测试
        </View>
        <View className='at-article__h2 subTitle'>只需要2分钟,就能准确描述出你是谁,以及你的性格特点</View>
        <AtButton type='primary' circle className='enterBtn' onClick={() => {
          // 跳转到测试页面
          Taro.redirectTo({
            url: '/pages/doQuestion/index'
          })
        }}>
          开始测试
        </AtButton>
      </View>
      <View className="bg"></View>
      <Image src={headerBg} className='headerBg' mode='aspectFill'/>
      <GlobalFooter />
    </View>
  )
}
